package cc.vv.btpartyjob.jobactivities.activity

import android.os.Bundle
import android.view.View
import cc.vv.baselibrary.view.BaseTopBarView
import cc.vv.btpartyjob.jnimodule.binder.BaseBinder
import cc.vv.btpartyjob.jnimodule.enums.H5UrlEnum
import cc.vv.btpartyjob.jnimodule.fragment.JniDataListFragment
import cc.vv.btpartyjob.jnimodule.server.JniStartActivity
import cc.vv.btpartyjob.jobactivities.R
import cc.vv.btpartyjob.jobactivities.delegate.SocialistCoreValuesActivityDelegate
import cc.vv.mvp.activity.BaseActivityMVP
import cc.vv.mvp.binder.BaseDataBinder
import com.chad.library.adapter.base.BaseQuickAdapter

/**
 * 社会主义核心价值观
 * Created by Chen.qi on 2018/10/29.
 */
class SocialistCoreValuesActivity : BaseActivityMVP<SocialistCoreValuesActivityDelegate>() {

    override fun initData() {
        viewDelegate?.setTopBarTitle("社会主义核心价值观")
    }

    override fun initView(bundle: Bundle?) {
        super.initView(bundle)
        val fm = supportFragmentManager
        val ft = fm.beginTransaction()
        val fragment = JniDataListFragment()
        ft.add(R.id.fl_asVc_data, fragment)
        ft.commit()
    }

    override fun bindEvenListener() {
        viewDelegate?.setTitleBackBtnOnClick(object : BaseTopBarView.EventInterface {
            //返回
            override fun leftOnClick() {
                finish()
            }

            override fun leftCloseClick() {}
            override fun rightOnClick() {
            }
        })


    }

    override fun getDelegateClass(): Class<SocialistCoreValuesActivityDelegate> {
        return SocialistCoreValuesActivityDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }
}